﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManagerDept.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.admin.UserManagerDept" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>选择部门</title>
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/default/easyui.css"/>
    <script src="/lib/jquery.js" type="text/javascript"></script>  
    <script src="/lib/Plugins/Common.js" type="text/javascript"></script>   
    <script src="/lib/Plugins/jquery.ifrmdailog.js" defer="defer" type="text/javascript"> </script> 
    <script language="javascript">
        function refreshOpenerValues() {
            if (window.opener && !window.opener.closed) {
                window.opener.toLoadDetail();
            }
        }
    </script>
    
    <style type="text/css">
        html,body{padding:0; margin:0; background-color:#ffffff; font-size:12px;}
    </style>    
    
    <style type="text/css">
        
        #form1
        {
            width: 281px;
            height: 364px;
        }
        
    </style>
</head>
<%-- <body onunload="javascript:CloseModelWindow(null, true);" > 
--%>

<body > 

    <form id="form1" runat="server">
    <div>
    
				    <asp:GridView ID="GridViewDept" runat="server" AutoGenerateColumns="False" 
                        CellPadding="1" CellSpacing="1" 
                        Font-Size="Small" ForeColor="#333333" GridLines="None" PageSize="6" 
                        style="margin-bottom: 0px; margin-right: 1px;" Width="281px" Height="100%" 
                        DataKeyNames="DeptID">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="DeptID" HeaderText="No." ReadOnly="True" 
                                SortExpression="DeptID" >
                            <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DeptName" HeaderText="部门名称" ReadOnly="True" 
                                SortExpression="DeptName">
                            <ItemStyle Font-Size="Small" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="选择" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckbDeptSelect" runat="server" 
                                        Checked='<%# Bind("Selected") %>' AutoPostBack="True" 
                                        oncheckedchanged="ckbDeptSelect_CheckedChanged" 
                                         onClick="refreshOpenerValues();" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="33px" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    <div style=" text-align:right;padding-right:5px; width: 273px; height: 17px;">
                    &nbsp;
                    </div>
                
			
	</div>
    </form>
</body>
</html>
